<template>
  <!-- <AppTaps v-if="showTaps" /> -->
  <router-view v-slot="{ Component, route }">
    <transition enter-active-class="animate__animated animate__fadeIn" mode="out-in" appear>
      <keep-alive :include="keepAliveName">
        <component :is="Component" :key="route.path" />
      </keep-alive>
    </transition>
  </router-view>
</template>

<script setup lang="ts" name="AppView">
import { useTagsViewStore, useSettingStore } from '@/stores'
const settingStore = useSettingStore()
const { showTaps } = storeToRefs(settingStore)
const keepAliveName = computed(() => useTagsViewStore().cachedViews)
</script>
<style lang="scss"></style>
